<?php
require('config.php');
	$wb_id=$_REQUEST['wb_id'];
	$user_id=$_REQUEST['user_id'];
	$to_user_id=$_REQUEST['to_user_id'];
	$sql="select * from ".$oto."_help_chat where helpId='{$wb_id}' and isDel='0' and (userId='{$user_id}' and acceptUserId='{$to_user_id}') or (userId='{$to_user_id}' and acceptUserId='{$user_id}') order by createTime ASC";
	$result=$db->query($sql);
	while($row=$result->fetch_assoc()){
		$help_chat[]=$row;//将取得的所有数据赋值给person_info数组
	}
	if(isset($help_chat)) echo json_encode($help_chat);
	else echo '[]';
?>